# Copyright 2008 Google Inc.
#coding=utf-8
import os
os.environ["DJANGO_SETTINGS_MODULE"] = "seblog.settings" 

from django import shortcuts

from seblog.common_logic.pythonlib import HTMLCalendar
from seblog.web.render import render_to_response

def index(request):
    template = 'demoapp/my_calendar/calendar.html'
    calendar_page = HTMLCalendar.MonthCal().render(2009,1,{15:u'犯得上http://www.google.com',})
    

#    from seblog.common_logic import calendar
#    hc = calendar.HTMLCalendar(calendar.SUNDAY)
#    calendar_page = hc.formatmonth(2008,4)

    params = {'calendar':calendar_page}
    
    return render_to_response(template, params, request)



